<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar"><span class="color_red">*</span>团队建设计划</div>
   <table class="t_css" width="100%" border="0" cellpadding="0"
	    cellspacing="1" id="goal1">
      <tr class="li_1">
          <td align="left"><strong>1．今后三年主要研究方向，研究内容及创新点。重点阐述开展的研究对依托单位发展的作用（学科带动、科研水平提升、队伍建设等）；对完成国家、省级重大战略任务，提升相关领域科技创新能力和竞争力的意义。（字数控制在1000字以内）</strong></td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="5" style="width: 908px;"  class="input_textarea required  maxlength:1000"   name='proposal/goal/summary4'  label="今后三年主要研究方向，研究内容及创新点"><x:out select="$xmlData/data/proposal/goal/summary4"/></textarea>
		   <input type='hidden' name='proposal/goal/summary4_hidden' id='proposal/goal/summary4_hidden' value=''>
		  </td>
      </tr>
    </table>
<div class="t_bar">
	2、主要研发项目规划。（重点阐述今后三年内拟开展的创新项目、预期成果，应注重规划的系统性和时间节点）
</div>
	<table  id="tblMileStones" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="30px">选择</th>
						<th class="TblHead" align="center"  width="30px">序号</th>
						<th class="TblHead" align="center"  width="125px">开始日期</th>
						<th class="TblHead" align="center"  width="125px">结束日期</th>
						<th class="TblHead" align="center"  >计划进度（限500字）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selMileStones" >
						</td>
						<td align="center">&nbsp;
							<span name="milestones|milestone[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">&nbsp;
							<input  id="milestone_start_date_[0]" name="milestones|milestone[0]|start_date" label="开始日期"value="" class=" required input_text date  dateCompare:milestone_end_date_[0] " style="width:70px" label="开始日期" />
						</td>
						<td align="center">&nbsp;<input  id="milestone_end_date_[0]" name="milestones|milestone[0]|end_date" label="结束日期" value="" class=" required input_text date " style="width:70px" label="结束日期" /> </td> 
						<td>&nbsp;<textarea name="milestones|milestone[0]|content" class="input_textarea required maxlength:500" label="计划进度"  rows=5 style="width: 558px;"></textarea>
						<input type="hidden" name="milestones|milestone[0]|content_hidden" />
						</td> 
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/milestones/milestone" var="milestone">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selMileStones" >
						</td>
						<td align="center">
							<span   name="milestones/milestone[${flag}${index}]@seq_no" ><x:out select="$milestone/@seq_no"/></span> 
						</td>
						<td align="center">&nbsp;
							<c:set var="start_date" scope="page"><x:out select="$milestone/start_date"/></c:set>
							<input  id="milestone_start_date_[${flag}${index}]" value="${start_date}" label="开始日期" name="milestones/milestone[${flag}${index}]/start_date" class="required date input_text dateCompare:milestone_end_date_[${flag}${index}] "  style="width:70px" label="开始日期" /> 
						</td>
						<td align="center">&nbsp;
							<c:set var="end_date" scope="page"><x:out select="$milestone/end_date"/></c:set>
							<input  id="milestone_end_date_[${flag}${index}]" name="milestones/milestone[${flag}${index}]/end_date" label="结束日期" value="${end_date}" class="required date input_text " style="width:70px" label="结束日期" /> </td> 
						<td>&nbsp;
							<textarea name="milestones/milestone[${flag}${index}]/content" class="input_textarea required maxlength:500" label="主要工作内容" rows=5 style="width: 558px;"><x:out select="$milestone/content"/></textarea>
							<input type="hidden" name="milestones/milestone[${flag}${index}]/content_hidden" id="milestones/milestone[${flag}${index}]/content_hidden" value="<x:out select="$milestone/content_hidden"/>"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblMileStones");
					</script>
				</tbody>
					</table>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones',8,'项目进度信息最多只能填写8条')){addNewRow('tblMileStones');showDateTag('tblMileStones');}try{top.resizeFrame();}catch(e){};">
					<!--
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones',5,'项目进度信息最多只能填写5条')){addNewRow('tblMileStones');}showDateTag('tblMileStones');try{top.resizeFrame();}catch(e){};">
                    -->
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblMileStones','selMileStones')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblMileStones','selMileStones')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblMileStones','进度')">
					</td></tr>
	</table>
	
      <%-- <tr class="li_1">
          <td align="left"><strong>3、人才培养规划。（依托研发项目，分别阐述对带头人、核心成员、其他成员三个层次的培养计划，培养期前后要形成对比关系）（限500字）</strong></td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="5" cols="150"  class="input_textarea required  maxlength:500"   name='proposal/goal/summary5'  label="人才培养规划"><x:out select="$xmlData/data/proposal/goal/summary5"/></textarea>
		   <input type='hidden' name='proposal/goal/summary5_hidden' id='proposal/goal/summary5_hidden' value=''>
		  </td>
      </tr> --%>
      <div class="t_bar">
		 3、人才培养规划。（依托研发项目，分别阐述对带头人、核心成员、其他成员三个层次的培养计划，培养期前后要形成对比关系） 
		</div>
      	<table  id="tblTalentPlan" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center" rowspan="2" width="7%">选择</th>
						<th class="TblHead" align="center" rowspan="2" width="7%">序号</th>
						<th class="TblHead" align="center" rowspan="2" width="15%">成员类别</th>
						<th class="TblHead" align="center" rowspan="2" width="10%">姓名</th>
						<th class="TblHead" align="center" rowspan="2" width="31%">培养期前（限200字）</th>
						<th class="TblHead" align="center" rowspan="2" width="30%">培养期后（限300字）</th>
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton" name="selTalentPlan" >
						</td>
						<td align="center"> 
							<span name="talentplans|talentplan[0]@seq_no" >[index]</span> 
						</td>
						<td align="center"> 
							 <cpt:select id="talentplan_type[index]" key="talentplan_type" style="width: 80%;" name="talentplan_type" onChange="initControlValue(this.id);"></cpt:select>
							 <input type="hidden" name="talentplans|talentplan[0]|talentplan_type_value"  value="" label="成员类别"  class="required"/>
							 <input type="hidden" name="talentplans|talentplan[0]|talentplan_type_name" value="" />
						</td>
						<td align="center"> 
							<input type="text" name="talentplans|talentplan[0]|talentplan_name" class="input_css required maxlength:100" maxlength="100" style="width: 85%;" label="姓名"/>
						</td>
						<td align="center"> 
							<textarea rows="5" style="width: 90%;" name="talentplans|talentplan[0]|talentplan_before" class="input_textarea required maxlength:200" label="培养期前"></textarea>
							<input type="hidden" name="talentplans|talentplan[0]|talentplan_before_hidden"  value="" />
						</td>
						<td align="center">
							<textarea rows="5" style="width: 90%;" name="talentplans|talentplan[0]|talentplan_after" class="input_textarea required maxlength:300" label="培养期后"></textarea>
							<input type="hidden" name="talentplans|talentplan[0]|talentplan_after_hidden"  value="" />
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/talentplans/talentplan" var="talentplan">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center"> 
							<input type="radio" class="radiobutton" name="selTalentPlan" >
						</td>
						<td align="center">
							<span   name="talentplans/talentplan[${flag}${index}]@seq_no" ><x:out select="$talentplan/@seq_no"/></span> 
						</td>
						<td align="center"> 
							<c:set var="talentplan_type_value"><x:out select="$talentplan/talentplan_type_value"/></c:set>
							 <cpt:select id="talentplan_type${index }" key="talentplan_type" name="talentplan_type" style="width: 80%;" value="${talentplan_type_value }" onChange="initControlValue(this.id);"></cpt:select>
							 <input type="hidden" name="talentplans/talentplan[${flag}${index}]/talentplan_type_value" value="${talentplan_type_value }" label="成员类别"  class="required"/>
							 <input type="hidden" name="talentplans/talentplan[${flag}${index}]/talentplan_type_name" value="<x:out select="$talentplan/talentplan_type_name"/>" />
						</td>
						<td align="center"> 
							<input type="text" name="talentplans/talentplan[${flag}${index}]/talentplan_name" class="input_css required maxlength:100" maxlength="100" style="width: 85%;" label="姓名" value="<x:out select="$talentplan/talentplan_name"/>"/>
						</td>
						<td align="center"> 
							<textarea rows="5" style="width: 90%;" name="talentplans/talentplan[${flag}${index}]/talentplan_before" class="input_textarea required maxlength:200" label="培养期前"><x:out select="$talentplan/talentplan_before"/></textarea>
							<input type="hidden" name="talentplans/talentplan[${flag}${index}]/talentplan_before_hidden"  value="" />
						</td>
						<td align="center">
							<textarea rows="5" style="width: 90%;" name="talentplans/talentplan[${flag}${index}]/talentplan_after" class="input_textarea required maxlength:300" label="培养期后"><x:out select="$talentplan/talentplan_after"/></textarea>
							<input type="hidden" name="talentplans/talentplan[${flag}${index}]/talentplan_after_hidden"  value="" />
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					</tbody>
					</table>
					
					<table width="98%" align="center">
						<tr ><td>
						<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblTalentPlan',20,'人才培养规划最多只能填写20条')){addNewRow('tblTalentPlan');}try{top.resizeFrame();}catch(e){};">
						<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblTalentPlan','selTalentPlan')">
						<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblTalentPlan','selTalentPlan')">
						<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblTalentPlan','人才培养规划信息');">
						</td></tr>
					</table>
      
    <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="goal2">
      <tr class="li_1">
          <td align="left"><strong>4、各合作方或团队成员协作规划。（重点阐述在开展上述科研项目时，各合作方或团队成员拟承担的角色和发挥的作用）（限500字）</strong></td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="5" style="width: 908px;" class="input_textarea required  maxlength:500"   name='proposal/goal/summary6'  label="各合作方或团队成员协作规划"><x:out select="$xmlData/data/proposal/goal/summary6"/></textarea>
		   <input type='hidden' name='proposal/goal/summary6_hidden' id='proposal/goal/summary6_hidden' value=''>
		  </td>
      </tr>
      <tr class="li_1">
          <td align="left"><strong>5、依托单位对推荐团队建设和培养所提供的保障措施及落实计划（包括岗位设置、人才培养、科研场所、实验平台、经费投入、项目倾斜等）。（限500字）</strong></td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="5" style="width: 908px;" class="input_textarea required  maxlength:500"   name='proposal/goal/summary7'  label="依托单位对推荐团队建设和培养所提供的保障措施及落实计划"><x:out select="$xmlData/data/proposal/goal/summary7"/></textarea>
		   <input type='hidden' name='proposal/goal/summary7_hidden' id='proposal/goal/summary7_hidden' value=''>
		  </td>
      </tr>
    </table>